<?php if(isset($debug_page) && $debug_page === TRUE): ?>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet">
<?php endif; ?>

<!--pagination start-->
<div class="row bottom-pages navbar-fixed-bottom <?php if(!$pager['visible'])echo 'hidden' ?>">
    <div class="container-fluid main-content text-center">
        <ul class="pagination pull-right">

            <li class="<?php if(!$pager['page_first'])echo 'disabled' ?>"><a href="javascript:listTable.gotoPage(<?php echo intval($pager['page_first']) ?>);" data-toggle="tooltip" data-placement="top" title="第一页"><span class="glyphicon glyphicon-step-backward"></span></a></li>

            <li class="<?php if(!$pager['page_prev'])echo 'disabled' ?>"><a href="javascript:listTable.gotoPage(<?php echo intval($pager['page_prev']) ?>);" data-toggle="tooltip" data-placement="top" title="上一页"><span class="glyphicon glyphicon-backward"></span></a></li>

            <?php foreach($pager['page_number'] as $page): ?>
            <li class="<?php echo $pager['page'] == $page ? 'active' : '' ?>">
            	<a href="javascript:listTable.gotoPage(<?php echo $page ?>);"><?php echo $page ?></a></li>
            <?php endforeach;  ?>

              <li class="<?php if(!$pager['page_next'])echo 'disabled' ?>"><a href="javascript:listTable.gotoPage(<?php echo intval($pager['page_next']) ?>);" data-toggle="tooltip" data-placement="top" title="下一页"><span class="glyphicon glyphicon-forward"></span></a></li>

              <li class="<?php if(!$pager['page_last'])echo 'disabled' ?>"><a href="javascript:listTable.gotoPage(<?php echo intval($pager['page_last']) ?>);" data-toggle="tooltip" data-placement="top" title="最后一页"><span class="glyphicon glyphicon-step-forward"></span></a></li>
              <!--//////////////////////////////////-->
              <li style="display:none" class="<?php if(!$pager['page_last'])echo 'disabled' ?>"><a data-action="loadPager" data-page="<?php echo $pager['page_last'] ?>" href="javascript:;" data-toggle="tooltip" data-placement="top" title="最后一页"><span class="glyphicon glyphicon-step-forward"></span></a></li>
              <!--//////////////////////////////////-->
        </ul>
        <div class="pull-right" style="padding:12px 12px 0px 12px; color:#00F">
        	共 <?php echo $pager['page_count'] ?> 页; <?php echo $pager['record_count'] ?> 条数据;
            每页 <input id="pageSize" name="pageSize" style="width:30px; text-align:center" type="text" value="<?php echo $pager['page_size'] ?>" onkeypress="return listTable.changePageSize(event)" > 条
        </div>
    </div>
</div>

<script type="text/javascript">
var pagerFilter = new Object;
<?php if(!empty($pager['filter'])): ?>
<?php foreach($pager['filter'] as $key => $item): ?>
pagerFilter.<?php echo $key; ?> = '<?php echo $item; ?>';
<?php endforeach; ?>
<?php endif; ?>
</script>

<!--pagination end-->